#-*-coding: utf-8 -*_#开发团队
# E-Mail: cq30@foxmail.com
# 开发时间 : 2021/10/10 19:08
# @auther: CQ-PRO
# Origin :崔强 2019110504 

import scipy.stats
import numpy as np
MaxSpeed = [422.2,417.2,425.6,425.8,441.3,
            423.1,418.7,428.2,438.3,434.0,
            412.3,431.5,413.5,423.0,420.3]
ms_aver = np.mean(MaxSpeed)
ms_std = np.std(MaxSpeed, ddof=1)
SE = ms_std/np.sqrt(15)
print("置信区间为:(%.2f,%.2f)"%(ms_aver-1.96*SE,ms_aver+1.96*SE))
